import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from '@/router'
import VueCropper from 'vue-cropper'
import Clipboard from 'v-clipboard'
import { setupPermission } from '@/utils/permission'
import 'vue-cropper/dist/index.css'
import 'ant-design-vue/dist/antd.less'
import './assets/style/index.css'
import './assets/style/global.scss'
import ElementPlus from 'element-plus'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
createApp(App)
  .use(createPinia())

  .use(router)
  .use(Clipboard)
  .use(ElementPlus, { size: 'small', zIndex: 3000 })

  .use(VueCropper)
  .use(setupPermission)
  .mount('#app')
